#!/bin/bash
# Copyrignt (c) xuzeshui.com. All Rights Reserved.
# Author: Xiaobao Zeng<zengxiaobao@skyworth.com>
# Created Time: 2015-12-30 10:19:31
# Last Modified: 2017-02-24 19:46:35
# File Name: adop.sh
# Description: 


host="127.0.0.1:8120"
#host="112.74.17.50:18017"
#host="adop.app.doubimeizhi.com"
appkey="0272050d21d641e2b6f188fde6e48476"
#reqTime=`date +%s`

#sign=`echo -n "appkey${appkey}time${reqTime}credit.app.doubimeizhi.com" | md5sum | awk '{print $1}'`
#url="http://adop.app.doubimeizhi.com/advertoper/get?appkey=${appkey}"
#&time=${reqTime}&sign=${sign}
#curl -v -d '{}' "${url}"

curl -v -d '{"layout":"1,2", "length":10}' -k "https://${host}/advertoper/admin/layout/data?appkey=0272050d21d641e2b6f188fde6e48476&time=123&sign=123&length=10"
